home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
util
/
text
/
xdmetex.lha
/
rexx
/
TeXify.xdme
< prev
next >
Wrap
Text File
|
1995-09-07
|
2KB
|
33 lines
/* TeX von DME aus synchron starten */
/* */
/* (c) 1994 Helmut Kindler $VER TeXify 1.1 (2.6.94) */
parse ARG file
if upper(right(file,4)) ~= '.TEX' then do
title '(TeXify braucht "*.tex"-Files,' file ' geht nicht!)'
address COMMAND wait 2
end
else do
file = left(file,length(file)-4)
title '(Rufe AmigaTeX mit Filenamen' file ')'
address 'AMIGATEX' /* Hi TeX, jetzt büs du dran */
'TeXify' file /* denn mach man hin */
'NextPrompt' /* ich wart so lang */
'Prompt' /* sach man was los is */
'ErrorLoc' /* hast nen Fehler für mich? */
pro = getclip('AmigaTeX.Prompt') /* denn hol ich mir dat ma */
loc = getclip('AmigaTeX.ErrorLoc') /* auch den Fehler */
if pro ~= '**' then do /* Falls ken normaler Prompt */
title 'Fehler' pro 'in File/Zeile/Spalte:' loc ')'
/* sach ich's dem User */
'Abort' /* kannst aufhörn AmigaTeX */
address /* ich geh zum DME */
line = word(loc,2) /* hol mir noch kurz Zeile */
col = word(loc,3) /* und Spalte */
'goto' line /* DME geh du man zur Zeile */
'first' /* dort auf's erste Zeichen */
'repeat' col - 1 'right' /* un in'ne richtige Spalte */
end
end